/*
 * @description: 
 * @Author: Islands
 * @Date: 2024-06-23 00:09:04
 * @LastEditTime: 2024-06-24 11:52:46
 */
import { PropType } from "vue";
import {ITableConstant} from '@/api/types/index.d';



export const props = {
    tableData:{
        type:Array<any>,
        default:[],
        required: true
    },
    constants:{
        type: Object as PropType<Array<ITableConstant>>,
        default:[],
        required: true
    },
    rowKey:{
        type:String,
        default:''
    },
    button:{
        type:Boolean,
        default:true
    },
    lazy:{
        type:Boolean,
        default:false
    },
    height:{
        type:String,
        default:'410px'
    }
};


export interface Emits {
    (e: 'lazyLoad', row: any,resolve:(data:any)=>void): () => void;
    (e:'selectionChange',row:any):()=>void
}